package com.eight.cloud.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 多租户和数据权限实体
 *
 * @ClassName: TenantDataScopeEntity
 * @Author: TXC
 * @Date: 2024-10-28 17:36
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class TenantDataScopeEntity <T extends TenantDataScopeEntity<?>> extends BaseEntity<T> {
    /**
     * 部门
     */
    @TableField(value = "dept_id", fill = FieldFill.INSERT)
    private String deptId;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private String tenantId;
}
